
import request from '../utils/request'


// 试卷相关接口
export const paperApi = {
    // 获取试卷列表
    getPaperPage: (data) => request({
        url: '/paper/paper/page',
        method: 'post',
        data
    }),
    // 添加试卷
    addPaper: (data) => request({
        url: '/paper/paper',
        method: 'post',
        data
    }),
    // 获取试卷详情
    getPaperDetail: (id) => request({
        url: `/paper/paper/${id}`,
        method: 'get'
    }),
    // 更新试卷
    updatePaper: (data) => request({
        url: `/paper/paper`,
        method: 'put',
        data
    }),
    // 删除试卷
    deletePaper: (id) => request({
        url: `/paper/paper/${id}`,
        method: 'delete'
    })
} 